package SqList;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:主要进行测试
 * ArrayList默认数组大小是多少？？？
 * ArrayList的构造方法
 * ArrayList的增容机制
 * User: 石方旭
 * Date: 2022-04-26
 * Time: 10:31
 */
public class TestDemo {
    public static void main(String[] args) throws SqListEmptyException, PosIndexOfBoundsException {
        ArrayList<Integer> arrayList = new ArrayList<>();
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
//        myArrayList.add(1,2);
//        myArrayList.add(2,3);
//        myArrayList.add(3,4);
//        myArrayList.add(4,5);
//        myArrayList.display();
//        myArrayList.set(0,100);
//        myArrayList.display();
        System.out.println(myArrayList);
    }
}
